
package RPG;

import java.io.IOException;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;


public class RPG extends StateBasedGame{
  
    private static final String TITLE = "RPG";
    
    private static final int FOREST_SCENE = 9;
    private static final int LEVEL01 = 01;
    private static final int LEVEL10 = 10;
    
    public RPG() throws SlickException, IOException{
        super(TITLE);
        addState(new Level01(LEVEL01));
        addState(new Level2(LEVEL10));
        addState(new ForestScene(FOREST_SCENE));
    }

    public static void main(String[] args) throws IOException{
        
        try{
            AppGameContainer app = new AppGameContainer(new RPG());
            app.setDisplayMode(750, 750, false);
            
            app.start();
        }catch (SlickException e){
            e.printStackTrace();
        }
    }

   @Override
    public void initStatesList(GameContainer gc) throws SlickException {
       getState(LEVEL01).init(gc, this);
       getState(LEVEL10).init(gc, this);
       enterState(LEVEL01);
    }
   
  

    
}
